package com.eventssmartphone;

import com.clientes.ActivityListaAmbientes;
import com.clientes.ActivityListaProv;
import com.eventos.ActivityCategoriasEventos;
import com.eventos.ActivityListadoEventos;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.Toast;

public class MainActivity extends Activity implements  OnClickListener{
	Button eventos;
	Button ptoventa;
	Button ambiente;
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu);
        
        eventos = (Button)findViewById(R.id.button1);        
        eventos.setOnClickListener(this);
        ptoventa = (Button)findViewById(R.id.button2);        
        ptoventa.setOnClickListener(this);
        ambiente = (Button)findViewById(R.id.button3);        
        ambiente.setOnClickListener(this);
        
    }
    
    
    
        
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		
		
		if (v.getId() == R.id.button1){
			
			
			Intent intent = new Intent();
			intent.setClass(this, ActivityCategoriasEventos.class);
			startActivity(intent);
						
		}
		
		else if (v.getId() == R.id.button2){
			
			
			Intent intent = new Intent();
			intent.setClass(this, ActivityListaProv.class);
			startActivity(intent);
						
		}
		
		else if (v.getId() == R.id.button3){
			
			
			Intent intent = new Intent();
			intent.setClass(this, ActivityListaAmbientes.class);
			startActivity(intent);
						
		}
		
		
	}
}